import "dotenv/config";
import inquirer from "inquirer";
import { getCCTV } from "./utils/getThought";
import { questions } from "./questions/thought";

inquirer.prompt(questions).then(async (answers) => {
    console.log(answers);
    if (answers.website === "CCTV(https://news.cctv.com)") {
        const res = await getCCTV();
        if (res) console.log(`获取到${res.length}条新闻`);
    }
});
